In [1]:
    
import opengrid as og
from opengrid import datasets
    
In [1]:
    
%matplotlib inline
    
In [4]:
    
df = datasets.get('gas_2016_hour')
    
In [12]:
    
df_month = df.resample('MS').sum().loc['2016']/1000 # kWh/month
mvlr = og.MultiVarLinReg(df_month, endog='313b')
    
In [13]:
    
print(mvlr.fit.summary())
mvlr.plot()
    
    
    
    
    
    Out[13]:
In [ ]: